package com.atguigu.srb.entity.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentFontStyle;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.FillPatternTypeEnum;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
@HeadFontStyle(fontName="黑体" ,color = 45 ) //表头字体样式
@HeadStyle(borderLeft = BorderStyleEnum.THIN , fillBackgroundColor =12 ,fillPatternType = FillPatternTypeEnum.DIAMONDS)  //表头单元格样式
@Data
public class DictExcelVo {
    /**
     * id
     */
    @ExcelProperty(value = "编号" ,index = 8) //index表示写入到哪一列  从0开始计算    -1表示自动处理
    private Long id;

    /**
     * 上级id
     */
//    @ContentStyle
//            @ContentFontStyle
    @ExcelProperty(value = "父编号")
    private Long parentId;

    /**
     * 名称
     */
    @ExcelProperty(value = "标题",index = 0)
    private String name;

    /**
     * 值
     */
    @ExcelProperty(value = "值")
    private Integer value;

    /**
     * 编码
     */
    @ExcelProperty(value = "code值")
    private String dictCode;
}
